{if $this->t_verify->is_post() && $this->t_verify->is_ajax()}
<table class="table table-hover table-striped">
    <thead>
        <tr>
            <th>ID</th>
            <th>标题</th>
            <th>积分</th>
            <th>创建时间</th>
            <th>类型</th>
            <th>操作人</th>
            <th style="width:50px;text-align:center">订单</th>
        </tr>
    </thead>
    <tbody>
        {loop $list as $var}
        <tr>
            <td>{sprintf("%06d",$var.id)}</td>
            <td>{$var.title}</td>
            <td>{$var.value}</td>
            <td>{array_shift($this->t_date->get_lastdate((int)$var.time))}</td>
            <td>{$var.type?'<span class="badge badge-success">收入</span>':'<span class="badge badge-important">支出</span>'}</td>
            <td>{$var.realname}</td>
            <td style="text-align:center"><a href="{site 'inventory/product_sales_look/'.$var.m_id}" title="查看记录"><i class="icon-search"></i> 查看</a></td>
        </tr>
        {/loop}

    </tbody>
</table>
{else}
{view 'public/head'}
</head>
<body>
    <div class="container-fluid">
        <form class="form-horizontal" accept-charset="utf-8" method="post">
            <div id="legend" class="">
                <legend class="">查看会员 <a href="{$this->t_client->reffer()}" class="btn" title="查看"><i class="icon-double-angle-left"></i> 返回</a></legend>
            </div>
            <table class="table table-hover">
                <tr>
                    <th style="width:130px;text-align:right">会员组：</th>
                    <td>
                        {$look.category}
                    </td>

                    <th style="width:130px;text-align:right">会员姓名：</th>
                    <td>{$look.realname}</td>

                    <th style="text-align:right">会员性别：</th>
                    <td>{$look.sex}</td>

                    <th style="text-align:right">会员卡号：</th>
                    <td>{$look.card}</td>
                </tr>
                <tr>
                    <th style="text-align:right">联系电话：</th>
                    <td>{$look.tel}</td>

                    <th style="text-align:right">QQ：</th>
                    <td>{$look.qq}</td>

                    <th style="text-align:right">Email：</th>
                    <td>{$look.email}</td>

                    <th style="text-align:right">家庭住址：</th>
                    <td>{$look.address}</td>
                </tr>
                <tr>
                    <th style="text-align:right">身份证号：</th>
                    <td>{$look.id_card}</td>

                    <th style="text-align:right">会员生日：</th>
                    <td>{$look.birthday!=='0000-00-00'?$look.birthday:''}</td>

                    <th style="text-align:right">会员积分：</th>
                    <td>{$look.points}
                    </td>

                    <th style="text-align:right">备注：</th>
                    <td>{$look.remark}</td>
                </tr>
                <tr>
                    <th style="text-align:right">创建人：</th>
                    <td>{$look.s_realname}</td>

                    <th style="text-align:right">创建日期：</th>
                    <td>{array_shift($this->t_date->get_lastdate((int)$look.time))}</td>

                    <th style="text-align:right">更新人：</th>
                    <td>{$look.u_realname}</td>

                    <th style="text-align:right">更新时间：</th>
                    <td>{array_shift($this->t_date->get_lastdate((int)$look.update_time))}</td>
                </tr>
            </table>
        </form>
        <div id="legend" class="">
            <legend class="">积分日志 <a href="{$this->t_client->reffer()}" title="返回" class="btn"><i class="icon-double-angle-left"></i> 返回</a></legend>
        </div>

        <p>
            <small><i class="icon-info-sign"></i> 查询到了<strong>{$count}</strong>个积分记录</small>
        </p>

        <div id="tablelist">

        </div>
        <div class="pagination pagination-centered">
            <ul id='pagination'>

            </ul>
        </div>
    </div>
    {view 'public/js'}
    <script type="text/javascript">
        $(document).ready(function() {
        {if !empty($count)}
        checkpagination()
        {/if}
        });
                function checkpagination(){

                $('#pagination').jqPaginator({
                totalCounts: {$count},
                        pageSize:{$base.queqry},
                        currentPage:1,
                        onPageChange: function(num, type) {
                        $.post("{site 'member/index_look/'.$look.id}", {count:{$count}, pagination:num}, function(data) {
                        $('#tablelist').html(data);
                        });
                        }
                });
                }
    </script>
</body>
</html>
{/if}